/*
 * @Author: 18970328563 2726167793@qq.com
 * @Date: 2023-03-15 22:52:34
 * @LastEditors: 18970328563 2726167793@qq.com
 * @LastEditTime: 2023-07-06 21:20:30
 * @FilePath: \vue_demo\src\api\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from '../request/index'

export const getLogin = async (data={}) => {
    return http({
        url:'/community-api/admin/login',
        method:'POST',
        data
    })
} 

export const getUserInfo = async (data={}) => {
    return http({
        url:"/community-api/admin/user/queryUser",
        method:'POST',
        data
    })
} 

export const updateUser = async (data={}) => {
    return http({
        url:'/community-api/admin/user/updateUser',
        method:'POST',
        data
    })
} 

export const deleteUser = async (data={}) => {
    return http({
        url:'/community-api/admin/user/delUser',
        method:'POST',
        data
    })
} 

export const getCode = async (params={}) => {
    return http({
        url:'/community-api/admin/getCode',
        method:'GET',
        params
    })
} 

export const addUser = async (data={}) => {
    return http({
        url:'/community-api/admin/user/addUser',
        method:'POST',
        data
    })
} 

export const articleQuery = async (data={}) => {
    return http({
        url:'/community-api/admin/blog/query',
        method:'POST',
        data
    })
} 

export const delArticle = async (data={}) => {
    return http({
        url:'/community-api/admin/blog/del',
        method:'POST',
        data
    })
} 


